<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>

<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        完善简历
    </div>
    <ol class="am-breadcrumb">
        <li><a href="<?php echo \yii\helpers\Url::toRoute(['index/index']);?>" class="am-icon-home">首页</a></li>
        <li><a href="<?php echo \yii\helpers\Url::toRoute(['user/index']);?>">后台</a></li>
        <li class="am-active">简历设置</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="portlet-title">
            <div class="caption font-green bold">
                <span class="am-icon-code"></span> 完善简历
            </div>
            <div class="tpl-portlet-input tpl-fz-ml">
                <div class="portlet-input input-small input-inline">
                    <div class="input-icon right">
                        <i class="am-icon-search"></i>
                        <input type="text" class="form-control form-control-solid" placeholder="搜索..."></div>
                </div>
            </div>

        </div>

        <div class="tpl-block ">
            <div class="am-g tpl-amazeui-form">
                <div class="am-u-sm-12 am-u-md-9">
                    <?php $form = ActiveForm::begin([
                        'id' => 'login-form',
                        'method' => 'post',
                        'options' => ['class' => "am-form am-form-horizontal"],
                        'enableClientValidation' => true,
                        'fieldConfig' => [
                            'template' => "<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-3 am-btn-danger\">{error}</div>",
                        ]
                    ]) ?>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">真实姓名 / Name</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'realname')->textInput(['placeholder' => '请输入真实姓名', 'class' => 'col-sm-6'])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="doc-select-1" class="am-u-sm-3 am-form-label">性别</label>
                        <div class="am-u-sm-9">
                            <label class="am-radio-inline">
                                <?php echo $form->field($model, 'sex')->textInput(['type' => "radio", 'value' => '男', 'class' => 'col-sm-6',])->label(false); ?>
                                男
                            </label>
                            <label class="am-radio-inline">
                                <?php echo $form->field($model, 'sex')->textInput(['type' => "radio", 'value' => '女', 'class' => 'col-sm-6',])->label(false); ?>
                                女
                            </label>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="doc-select-1" class="am-u-sm-3 am-form-label">简历是否公开</label>
                        <div class="am-u-sm-9">
                            <label class="am-radio-inline">
                                <?php echo $form->field($model, 'published')->textInput(['type' => "radio", 'value' => '1', 'class' => 'col-sm-6',])->label(false); ?>
                                是
                            </label>
                            <label class="am-radio-inline">
                                <?php echo $form->field($model, 'published')->textInput(['type' => "radio", 'value' => '0', 'class' => 'col-sm-6',])->label(false); ?>
                                否
                            </label>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-QQ" class="am-u-sm-3 am-form-label">年龄</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'age')->textInput(['class' => 'col-sm-6', 'pattern' => "[0-9]*", 'placeholder' => "输入你的年龄"])->label(false); ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-QQ" class="am-u-sm-3 am-form-label">邮箱</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'email')->textInput(['class' => 'col-sm-6', 'placeholder' => "输入你的邮箱"])->label(false); ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-weibo" class="am-u-sm-3 am-form-label">上传头像 <span
                                    class="tpl-form-line-small-title">Images</span></label>
                        <div class="am-u-sm-9">
                            <div class="am-form-group am-form-file">
                                <button type="button" class="am-btn am-btn-danger am-btn-sm">
                                    <i class="am-icon-cloud-upload"></i> 添加图片
                                </button>
                                <!--                                    <input id="doc-form-file" type="file" multiple="">-->
                                <?php echo $form->field($model, 'head_img')->fileInput(['id' => 'doc-form-file', 'multiple' => 'multiple']); ?>
                            </div>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">电话 / Telephone</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'telephone')->textInput(['class' => 'col-sm-6', 'placeholder' => '输入你的电话号码 / Telephone'])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-weibo" class="am-u-sm-3 am-form-label">毕业/在读 学校</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'school')->textInput(['class' => 'col-sm-6', 'placeholder' => '填写学校'])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">文化水平</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'degree')->textInput(['class' => 'col-sm-6', 'placeholder' => "输入你的文化水平(本科/研究生)"])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">专业</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'major')->textInput(['class' => 'col-sm-6', 'placeholder' => "输入你的主修专业"])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">当前住址</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'address')->textInput(['class' => 'col-sm-6', 'placeholder' => "输入你的当前住址"])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">第一技能</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'skill_1')->textInput(['class' => 'col-sm-6', 'placeholder' => "输入你的技能"])->label(false) ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">第二技能</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'skill_2')->textInput(['class' => 'col-sm-6', 'placeholder' => "输入你的技能"])->label(false) ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">第三技能</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'skill_3')->textInput(['class' => 'col-sm-6', 'placeholder' => "输入你的技能"])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-intro" class="am-u-sm-3 am-form-label">个人简介</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'information')->textarea(['class' => 'col-sm-6', 'placeholder' => "输入个人简介", 'rows' => "5"])->label(false) ?>
                            <small>250字以内写出你的一生...</small>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-intro" class="am-u-sm-3 am-form-label">工作经历</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'experience')->textarea(['class' => 'col-sm-6', 'placeholder' => "输入曾经的工作经历，或是一些特殊经历", 'rows' => "4"])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-intro" class="am-u-sm-3 am-form-label">工作期望</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($model, 'expect')->textarea(['class' => 'col-sm-6', 'placeholder' => "输入对自己或对工作的期望", 'rows' => "4"])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-3">
                            <?php echo Html::submitButton('保存修改', ['class' => 'am-btn am-btn-primary', 'name' => 'submit-button']) ?>
                        </div>
                    </div>
                    <?php ActiveForm::end(); ?>
                </div>
            </div>

        </div>

    </div>
</div>